//
//  NSDictionary+JJAdd.m
//  jiajia
//
//  Created by rujia chen on 16/5/5.
//  Copyright © 2016年 sunrisin. All rights reserved.
//

#import "NSDictionary+JJAdd.h"

@implementation NSDictionary (JJAdd)

- (NSString *)jj_jsonString {
    NSError *error = nil;
    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:self
                                                       options:NSJSONWritingPrettyPrinted
                                                         error:&error];
    if (error) return nil;
    NSString *json = [[NSString alloc] initWithData:jsonData  encoding:NSUTF8StringEncoding];
    
    return json;
}

@end
